#ifndef _SRF05_H_
#define _SRF05_H_


namespace sonar
{

class srf05
{
public:

  srf05(void) : _pin(-1) {}

  void setup(int pin) { _pin = pin; }

  void loop(void);

  unsigned long get_measure(void) const
  { return _measure; }

private:

  unsigned long _measure;
  unsigned long _duration;
  int _pin;
};

} // sonar

#endif // _SRF05_H_
